import type { App } from 'vue';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

/**
 * @function registerIcons 在全局注册el-icon组件中的图标
 * @param [App] app
 */
const registerIcons = (app: App<Element>) => {
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
  }
};

export default registerIcons;
